package secondaryHeader;

import bestbuy.ReceiptDecorator;
import bestbuy.ReceiptInterface;

public class SecondaryHeader extends ReceiptDecorator implements SecondaryHeaderInterface {
	
	private String sHeader;

	public SecondaryHeader(ReceiptInterface newReceipt, String sHeader) {
		super(newReceipt);
		this.sHeader=sHeader;
	}
	
	public String getReceipt() {
		return  sHeader + "\n" + tempReceipt.getReceipt();
	}

}
